import request from '@/utils/request'

/** @name 车辆列表 **/
export function getCarListAPI (params) {
  return request({
    url: '/car/list',
    method: 'get',
    params
  })
}

/** @name 编辑车辆 **/
export function editCarAPI (data) {
  return request({
    url: '/car/edit',
    method: 'post',
    data
  })
}

/** @name 设置车辆出库 **/
export function statusCarAPI (data) {
  return request({
    url: '/car/status',
    method: 'post',
    data
  })
}

/** @name 绑定车主 **/
export function bindCarAPI (data) {
  return request({
    url: '/car/bind',
    method: 'post',
    data
  })
}

/** @name 加入黑名单 **/
export function addBlackListAPI (data) {
  return request({
    url: '/car/addBlackList',
    method: 'post',
    data
  })
}
